package com.sservice.model.dao;

import com.sservice.model.entity.InvoicePaperBill;
import com.sservice.model.vo.InvoicePaperBillVo;

import java.util.List;

public interface InvoicePaperBillMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(InvoicePaperBill record);

    int insertSelective(InvoicePaperBill record);

    InvoicePaperBill selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InvoicePaperBill record);

    int updateByPrimaryKey(InvoicePaperBill record);

    /**
     *  根据 invoice_paper_id or lading_order_id
     * @param record
     * @return
     */
    List<InvoicePaperBill> selectBy(InvoicePaperBill record);

    /**
     * 通过申请单ID和申请单类型查询发票ID
     * @param record
     * @return
     */
    List<String> selectByLadingOrderIdAndOrderType(InvoicePaperBillVo record);
}